package Blog0;

import java.util.*; // 表示导入该包下的所有的类

//import java.util.Date;
import java.sql.*; // Util包下中含有 Date,sql 包中页同样含有 Date 此时出现歧义
                   // 编译器无法判断，究竟是哪个是你所需要的，所以会报错

import static java.lang.Math.PI;
import java.util.Date;






class Animal {
    String name ="HelloWorld";
    public Animal() {
        System.out.println("Animal 父类的构造方法");
    }
}
class Cat extends Animal{
    public Cat() {
        super();    // 调用父类的构造方法
        System.out.println("Cat 子类的构造方法");
    }

    public void func() {
        System.out.println(super.name);
    }

}

class ChineseGardenCat extends Cat {
    public ChineseGardenCat() {
        super();  // 调用父类构造方法
        System.out.println("ChineseGardenCat 子类的构造方法");
    }
}



class Studen {
    // 业务
}

class Teacher {
    // 业务
}

class School {
    public Studen studen;
    public Teacher teacher;
    public Studen[] studens2;
    public Teacher[] teachers2;
}
public class Blog04 {
    public static void main(String args[]) {
      ChineseGardenCat chineseGardenCat = new ChineseGardenCat();
        System.out.println(chineseGardenCat.name);
    }



    public static void main8(String args[]) {
        Animal animal = new Animal();
        System.out.println(animal.name);
    }





    public static void main7(String args[]) {
        Date date = new Date();
        System.out.println(date.toString());
    }



    public static void main6(String args[]) {
        System.out.println(PI);
    }


    public static void main5(String args[]) {
        Date date = new Date();
        System.out.println(date.toString());
    }


    public static void main3(String args[]) {
        System.out.println(PI);
    }



    public static void main2(String args[]) {
        Date date = new Date();
        System.out.println(date.toString());

    }



    public static void main1(String args[]){
        java.util.Date date = new java.util.Date();
        System.out.println(date.toString());

    }
}
